package com.xinpu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 目标表
 * </p>
 *
 * @author ayuan
 * @since 2021-04-29
 */
public class TTarget extends Model<TTarget> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 销售员
     */
    private Integer sid;

    /**
     * 目标时间
     */
    private String targetTime;

    /**
     * 完成单数
     */
    private Integer num;

    /**
     * 成交单数
     */
    private Integer sum;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getTargetTime() {
        return targetTime;
    }

    public void setTargetTime(String targetTime) {
        this.targetTime = targetTime;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getSum() {
        return sum;
    }

    public void setSum(Integer sum) {
        this.sum = sum;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TTarget{" +
        "id=" + id +
        ", sid=" + sid +
        ", targetTime=" + targetTime +
        ", num=" + num +
        ", sum=" + sum +
        "}";
    }
}
